def one():
    x = yield 1
    x = yield 2
    x = yield 3
    return 4


def two():
    x = yield from one()
    print('x', x)


f = two()

while True:
    print(f.send(None))

